package com.tencent.qf.activity.special.area.service.dal.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 礼金核销订单明细表
 * @TableName ts_gift_coupon_order_record
 */
@TableName(value ="ts_gift_coupon_order_record")
@Data
public class TsGiftCouponOrderRecord implements Serializable {
    /**
     * // 主键id
     */
    @TableId(value = "gift_coupon_order_record_id", type = IdType.AUTO)
    private Long giftCouponOrderRecordId;

    /**
     * // 订单唯一标示，订单号:skuid:itmeid
     */
    @TableField(value = "plain_order_id")
    private String plainOrderId;

    /**
     * // 创建时间(毫秒)
     */
    @TableField(value = "create_time")
    private Long createTime;

    /**
     * // 订单编号
     */
    @TableField(value = "external_order_id")
    private String externalOrderId;

    /**
     * // 订单实付金额，单位分
     */
    @TableField(value = "payment_amount")
    private Integer paymentAmount;

    /**
     * // 订单状态。CREATED：待付款、DELIVER_PENDING：待发货、SENT：待收货、SUCCESS：交易完成、CANCEL：已取消、NOT_VALID：已失效
     */
    @TableField(value = "order_status")
    private String orderStatus;

    /**
     * // 订单付款时间，unix 时间戳，字段长度为 13 字节
     */
    @TableField(value = "payed_time")
    private Long payedTime;

    /**
     * // kaid
     */
    @TableField(value = "ka_id")
    private String kaId;

    /**
     * // skuId
     */
    @TableField(value = "external_sku_id")
    private String externalSkuId;

    /**
     * // spuId
     */
    @TableField(value = "external_spu_id")
    private String externalSpuId;

    /**
     * // 买家unionid
     */
    @TableField(value = "union_id")
    private String unionId;

    /**
     * // 买家uid。导购助手账号体系的id。展示买家信息采用该字段
     */
    @TableField(value = "buyerinfo_cpsuid")
    private String buyerinfoCpsuid;

    /**
     * //导购uid
     */
    @TableField(value = "member_cpsuid")
    private String memberCpsuid;

    /**
     * // 礼金分摊金额(单位：分)
     */
    @TableField(value = "gift_amount")
    private Integer giftAmount;

    /**
     * // 礼金批次id
     */
    @TableField(value = "gift_key")
    private String giftKey;

    /**
     * 商品sku名称
     */
    @TableField(value = "sku_name_chinese")
    private String skuNameChinese;

    /**
     * // 分销单接口原始返回json
     */
    @TableField(value = "api_content")
    private String apiContent;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private Date createdAt;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private Date updatedAt;

    /**
     * 删除时间
     */
    @TableField(value = "deleted_at")
    private Date deletedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}